<div class="dialog-wrap">
    <form class="layui-form">
        <div class="layui-row">
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">ClientNo.</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input layui-disabled" disabled value="11111111">
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">ClientName</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input layui-disabled" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">ProjectId</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input layui-disabled" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">ProjectName</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input layui-disabled" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">BelongYear</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">BelongMonth</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">Branch</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">BranchOwner</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input layui-disabled" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">CandidateNo.</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input layui-disabled" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">CandidateName</label>
                    <div class="layui-input-block">
                        <select name="">
                            <option value=""></option>
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">Onboard Date</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item">
                    <label class="layui-form-label">GP</label>
                    <div class="layui-input-block">
                        <input type="text" name="" placeholder="" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-normal" id="saveBtn" lay-submit lay-filter="saveBtn">确认保存</button>
                </div>
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['layer', 'form', 'utils', 'verify'], function () {
        var $ = layui.jquery,
            layer = layui.layer,
            form = layui.form,
            utils = layui.utils,
            verify = layui.verify;
        /**
         * 初始化表单，要加上，不然刷新部分组件可能会不加载
         */
        form.render();

        // 当前弹出层，防止ID被覆盖
        var parentIndex = layer.index;


        //监听提交
        form.on('submit(saveBtn)', function (data) {
            utils.Ajax({
                url: '',
                dataType: 'json',
                type: 'post',
                data: data.field,
                success: function (response) {
                    layer.msg(response.message, {time: 1000}, function () {
                        layer.close(parentIndex);
                    })
                }
            });

            return false;
        });


    });

</script>